import type { Context } from "@webiny/api/types.js";
import type { ILicense, WcpProject } from "@webiny/wcp/types.js";
import { IWcpContext } from "./abstractions.js";

export interface WcpContext extends Context {
    wcp: IWcpContext;
}

export type WcpContextObject = IWcpContext;

export interface CachedWcpProjectLicense {
    cacheKey: string | null;
    project: WcpProject | null;
    license: ILicense;
}

export type AaclPermission = {
    name: "aacl";
    legacy: boolean;
    teams: boolean;
};
